package xyz.hubery.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import xyz.hubery.domain.SysMenu;

import java.util.List;

/**
 * 登录接口返回值
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "登录接口返回对象")
public class LoginResult {

    /**
     * token
     */
    @ApiModelProperty(value = "token")
    private String token;

    /**
     * 用户的菜单数据
     */
    @ApiModelProperty(value = "用户的菜单数据")
    private List<SysMenu> menus;

    /**
     * 用户的权限数据
     */
    @ApiModelProperty(value = "用户的权限数据")
    private List<SimpleGrantedAuthority> authorities;
}
